import request from '@/utils/request'


// 查询岗位列表
export function listRepositoryInfo(query) {
  return request({
    url: '/webshop/repositoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function getRepositoryInfo(postId) {
  return request({
    url: '/webshop/repositoryInfo/' + postId,
    method: 'get'
  })
}

// 删除岗位
export function delRepositoryInfo(postId) {
  return request({
    url: '/webshop/repositoryInfo/' + postId,
    method: 'delete'
  })
}
// 新增岗位
export function addRepositoryInfo(data) {
  return request({
    url: '/webshop/repositoryInfo',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updateRepositoryInfo(data) {
  return request({
    url: '/webshop/repositoryInfo',
    method: 'put',
    data: data
  })
}


